#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPainter>
#include <QRect>
#include <QPoint>
#include <QVector>
#include <QColor>
#include <QColorDialog>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

public:
    void paintEvent(QPaintEvent*);

private:
    QVector<QPoint> points;
    QColor color;
private slots:
    void on_pushButton_color_clicked();
    void on_pushButton_ok_clicked();
};

#endif // MAINWINDOW_H
